home *** CD-ROM | disk | FTP | other *** search
/ Animation How-To / Animation How-to CD.iso / PLY / CHAPTER3 / ROCKY / TEXT1.INC < prev    next >
Text File  |  1994-01-01  |  2KB  |  60 lines

  1. define position_plain       0
  2. define position_objectx     1
  3. define position_worldx      2
  4. define position_cylindrical 3
  5. define position_spherical   4
  6. define position_radial      5
  7.  
  8. define lookup_plain    0
  9. define lookup_sawtooth 1
  10. define lookup_sin      2
  11. define lookup_ramp     3
  12.  
  13. define color_phase
  14. texture {
  15.    noise surface {
  16.       color white
  17.       position_fn position_cylindrical
  18.       lookup_fn lookup_sin
  19.       octaves 1
  20.       turbulence 1.5+sin(phz*rad)
  21.       ambient 0.2
  22.       diffuse 0.7
  23.       specular 0.3
  24.       microfacet Reitz 5
  25.       color_map(
  26.       [0.000, 0.033, <a00, b00, c00>, <a01, b01, c01>]
  27.       [0.033, 0.067, <a01, b01, c01>, <a02, b02, c02>]
  28.       [0.067, 0.100, <a02, b02, c02>, <a03, b03, c03>]
  29.       [0.100, 0.133, <a03, b03, c03>, <a04, b04, c04>]
  30.       [0.133, 0.167, <a04, b04, c04>, <a05, b05, c05>]
  31.       [0.167, 0.200, <a05, b05, c05>, <a06, b06, c06>]
  32.       [0.200, 0.233, <a06, b06, c06>, <a07, b07, c07>]
  33.       [0.233, 0.267, <a07, b07, c07>, <a08, b08, c08>]
  34.       [0.267, 0.300, <a08, b08, c08>, <a09, b09, c09>]
  35.       [0.300, 0.333, <a09, b09, c09>, <a10, b10, c10>]
  36.       [0.333, 0.367, <a10, b10, c10>, <a11, b11, c11>]
  37.       [0.367, 0.400, <a11, b11, c11>, <a12, b12, c12>]
  38.       [0.400, 0.433, <a12, b12, c12>, <a13, b13, c13>]
  39.       [0.433, 0.467, <a13, b13, c13>, <a14, b14, c14>]
  40.       [0.467, 0.500, <a14, b14, c14>, <a15, b15, c15>]
  41.       [0.500, 0.533, <a15, b15, c15>, <a16, b16, c16>]
  42.       [0.533, 0.567, <a16, b16, c16>, <a17, b17, c17>]
  43.       [0.567, 0.600, <a17, b17, c17>, <a18, b18, c18>]
  44.       [0.600, 0.633, <a18, b18, c18>, <a19, b19, c19>]
  45.       [0.633, 0.667, <a19, b19, c19>, <a20, b20, c20>]
  46.       [0.667, 0.700, <a20, b20, c20>, <a21, b21, c21>]
  47.       [0.700, 0.733, <a21, b21, c21>, <a22, b22, c22>]
  48.       [0.733, 0.767, <a22, b22, c22>, <a23, b23, c23>]
  49.       [0.767, 0.800, <a23, b23, c23>, <a24, b24, c24>]
  50.       [0.800, 0.833, <a24, b24, c24>, <a25, b25, c25>]
  51.       [0.833, 0.867, <a25, b25, c25>, <a26, b26, c26>]
  52.       [0.867, 0.900, <a26, b26, c26>, <a27, b27, c27>]
  53.       [0.900, 0.933, <a27, b27, c27>, <a28, b28, c28>]
  54.       [0.933, 0.967, <a28, b28, c28>, <a29, b29, c29>]
  55.       [0.967, 1.000, <a29, b29, c29>, <a00, b00, c00>]
  56.       )
  57.    }
  58.    scale <100,100,100>
  59. }
  60.